 /*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

 /**
 * Project  : EasyAvatar-Android
 * Package  : net.solosky.easyavatar.bean
 * File     : ProviderMeta.java
 * Author   : solosky < solosky772@qq.com >
 * Created  : 2011-11-11
 * License  : Apache License 2.0 
 */
package net.solosky.easyavatar.bean;

/**
 *
 * 好友接口的一些元信息
 *
 * @author solosky <solosky772@qq.com>
 *
 */
public class ProviderMeta {
	/**代码，区分唯一的接口*/
	private String code;
	/**接口中文名称*/
	private String title;
	/**接口描述信息*/
	private String intro;
	/**接口验证方式*/
	private AuthType authType;
	/**小图标资源名*/
	private String  iconSmall;
	/**大图标资源名*/
	private String  iconLarge;
	/**类名*/
	private String clazz;
	/**验证信息*/
	private AuthInfo authInfo;
	/**OAuth AppKey*/
	private String appKey;
	/**OAuth AppSecret*/
	private String appSecret;
	/**会话或者认证过期时间*/
	private long expired;
	
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getIconSmall() {
		return iconSmall;
	}

	public void setIconSmall(String iconSmall) {
		this.iconSmall = iconSmall;
	}

	public String getIconLarge() {
		return iconLarge;
	}

	public void setIconLarge(String iconLarge) {
		this.iconLarge = iconLarge;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	
	public AuthType getAuthType() {
		return authType;
	}

	public void setAuthType(AuthType authType) {
		this.authType = authType;
	}

	public AuthInfo getAuthInfo() {
		return authInfo;
	}

	public void setAuthInfo(AuthInfo authInfo) {
		this.authInfo = authInfo;
	}

	public String getAppKey() {
		return appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public long getExpired() {
		return expired;
	}

	public void setExpired(long expired) {
		this.expired = expired;
	}



	/**
	 * 验证方式枚举
	 */
	public enum AuthType{
		/**网页验证*/
		WEB,
		/**OAuth*/
		OAUTH,
	}
}
